import { RecordMode } from "../common/enums"

export const SuiteValidator = {
    validate: (data, { activeSuiteTitle }) => {
        let errorList = []

        !activeSuiteTitle && errorList.push('请输入标题')
        data.filter(item => item.mode !== RecordMode.delete).length === 0 && errorList.push('请至少添加一个step')

        return errorList
    }
}